/* 
 * Copyright TLR Team, Inc. All Rights Reserved.
 */
TLR.$ngApp.config(function ($routeProvider) {
    $routeProvider
    .when("/dashboard-health-map/:view", {
        templateUrl: "app/mvp/template/view/dashboard/health-map.html",
        controller: "DashBoardHealthMapViewCtrl"
    })
    .when("/dashboard-car-map/:view", {
        templateUrl: "app/mvp/template/view/dashboard/car-map.html",
        controller: "DashBoardCarMapViewCtrl"
    })
    .when("/dashboard-air-map/:view", {
        templateUrl: "app/mvp/template/view/dashboard/air-map.html",
        controller: "DashboardAirMapViewCtrl"
    })
    .when("/dashboard-user/:view/:subview", {
        templateUrl: "app/mvp/template/view/dashboard/user-manage.html",
        controller: "DashboardUserViewCtrl"
    })
    .when("/dashboard-device/:view/:subview", {
        templateUrl: "app/mvp/template/view/dashboard/device-manage.html",
        controller: "DashboardDeviceViewCtrl"
    })
    
    .when("/dashboard-statistic/:view/:subview", {
        templateUrl: "app/mvp/template/view/dashboard/statistic-manage.html",
        controller: "DashboardStatisticViewCtrl"
    })
    .when("/dashboard-doc/:view", {
        templateUrl: "app/mvp/template/view/dashboard/doc-manage.html",
        controller: "DashboardDocViewCtrl"
    })
    .otherwise({
        redirectTo: '/dashboard-health-map/health'
    });
});

